#include <windows.h>

void* AllocRWEMemory(size_t size) {
    void* p = VirtualAlloc(0,size
        ,MEM_COMMIT | MEM_RESERVE
        ,PAGE_EXECUTE_READWRITE);
    return p;
}

void FreeRWEMemory(const void* ptr) {
    VirtualFree((void*)ptr,0,MEM_RELEASE);
}
